<?php

  class Column {
  
    public $field;
    public $type;
    public $null;
    public $key;
    public $default;
    public $extra;
    
    public function __toString () {
      return $this->field;
    }
    
    public function __set_state($arg) {
      $obj = new Column();
      foreach ($arg as $_name => $_value) {
        $obj->$_name = $_value;
      }
      return $obj;
    }
    
  }

?>